home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ALIAS.ZIP / ALIAS.TXT < prev    next >
Text File  |  1996-04-09  |  5KB  |  114 lines

  1. Short: Bitmap Scaling/Rotating/Antialiasing Filter prototyper C/PASCAL/ASM
  2. Type: programming/source
  3. Uploader: lsellers@1stresource.com
  4. =========================================================================
  5. Scaling, Rotation, Antialiasing prototyper. revision 3.
  6. =========================================================================
  7.  
  8. This program was written by Lewis A. Sellers (Minimalist)
  9. of The Minimalist Group, and the MOSOCI Grail Project in
  10. 1995-1996 Anno Dominus.
  11.  
  12.                 -- CONTACT INFORMATION --
  13.                 Email: lsellers@1stresource.com
  14.                 (possibly changing to lsellers@usit.net sometime soon.)
  15.                 http://www.1stresource.com/l/lsellers/
  16.                 http://www.dwc.edu/grail/
  17.                 IRC: #coders, nick == Minimalis or Min
  18.  
  19. This program is a prototyper designed for at least the 486 processors. 
  20. Preferably pentiums. It provides lots of code with a couple strategies
  21. in two to three languages for rotating and scaling a bitmap texture.
  22. It has has grayscale bilinear, trilinear, etc post antialiasing filtering
  23. as well as real-time color bilinear filtering through a lookup matrix.
  24.  
  25. While it is the result of several days of work on my part, fiddled
  26. with here and there over a few months as time permits, you can use
  27. it and the code involved if you wish as intas you include the standard
  28. greetings to me somewhere in your program, say in the credits.
  29.  
  30. I hope the code is of some use to you. As of now I'm moving on to a new hobby
  31. project which involves an object rendering engine for triangle meshes
  32. including environment and bumping.
  33.  
  34.  
  35.  
  36. About the BMP images these programs require.  All the old programs must use
  37. a 320x2008-bit grayscale image. The new WATCOM C version ALIASWC.EXE will
  38. work with any BMP of any resolution, be it color or grayscale, as long as it
  39. is 8-bits (256 color). The timage is centered into a 256x256 texture.
  40.  
  41. You must supply a BMP filename as an argument such as:
  42. C:> ALIAS DEATH.BMP
  43. The BMP can be any size, grayscale or color, so long as it is 8-bit color.
  44.  
  45.  
  46.  
  47. This'll probably it'll end up as some kind of tutorial one day. 
  48. Or part of one.
  49.  
  50.  
  51. --MIN (rhymes with NIN)
  52. April 9th 1996
  53.  
  54.   "the me that you know is now made up of wires
  55.    and even when i'm right with you i'm so far away" --NIN
  56.  
  57.  
  58. =========================================================================
  59. THE SOURCE AND EXECUTABLES: A HISTORY
  60. =========================================================================
  61. The BORLAND C Version: ALIASC.C
  62. This entire project started out as 16-bit BORLAND C code. Though at times
  63. I experimented with a full TASM version, a PASCAL version, and alternately
  64. compiled the program using Turbo C/C++ 3.00 and Borland 4.52, the current
  65. BORLAND C version is made to compile with Turbo C/C++ 3.00 and TASM 4.0.
  66.  
  67. This originally was written with borland turbo c++ 3.0 simply because it
  68. was easy to do so. To get a speed increase I tried using Borland C++ 4.52
  69. which I bought a while back. Most of the new Borland stuff is much more
  70. complicated than needs be so I hadn't used it much, but I did get about an
  71. extra two FPS from the recompile.
  72.  
  73. It has been abandon for the WATCOM 10.0 C version.
  74.  
  75.  
  76. The PASCAL Version: ALIASPAS.PAS
  77. About when I was half way through the original Borland C version, jmX of
  78. Opiate suggested that I learned Pascal for the IBM and essentially
  79. do some support code for them. Fortunately I had taken one class in Pascal
  80. a few years back so.... It took about a week to translate the C version
  81. I had at the time to Pascal.
  82.  
  83. I have not worked on it since then. Because I then continued on with the
  84. Borland version for a while before switching over to the WATCOM version
  85. the Pascal source/program is thus the oldest in this set.
  86.  
  87.  
  88. The WATCOM C Version: ALIASWC.C
  89. The current version of the prototyper is in WATCOM 10.0. At this time this
  90. is the only version that I am expecting to update, if at all, should
  91. I so desire it. I has the most features of all the programs and is the
  92. only one I talk about in this document. The others are 'unsupported'.
  93.  
  94. =========================================================================
  95. THE IMAGES
  96. =========================================================================
  97. MISSCATG.BMP
  98. A grayscale 320x200 of one of my kitty cats "Miss Cat" / "Prissy".
  99. This is the image all the reference FPS scores were derived with while
  100. on 'Z' setting.
  101.  
  102. DEATH.BMP
  103. From an old medical book, and subequentially edited, filtered, and 
  104. pixel-edited for effect.
  105.  
  106. TEST.BMP
  107. A grayscale test pattern I made up for the prototyper.
  108.  
  109. 2001.BMP
  110. From Stanley Kubriks "2001: A Space Odyessy". One of the films you should 
  111. be required to see to gain your citizenship. :)  This is included to show
  112. the effects of the color bilinear antialiasing filter (ie, 'C' 'B').
  113.  
  114.